package com.trkj.dao.jpa;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojos.YzrMedOutstockDet;

public interface IYzrMedOutstockDetDAO extends CrudRepository<YzrMedOutstockDet, String> {

	@Query("select max(ymod.medOutstockDetId) from YzrMedOutstockDet ymod where ymod.medOutstockDetId like ?1%")
	public String findMaxId(String a);
	
	@Query("select ymod from YzrMedOutstockDet ymod where ymod.medChukuId=?1")
	public List<YzrMedOutstockDet> findDetByOutId(String outstockId);
}
